#include "parser.h"
#include "Globe.h"
#include <iostream>
static bool eof()
{
    return feof(stdin);
}
int main()
{
    Global_Module_Initialize();
    Function_Analyze_Initialize("main");

    LEX lex(getchar, eof);
    parser par(&lex);
    while (!eof())
    {
        par.parseStatement();
    }
    for (const auto& i : CurrentFuncMgr->code_list)
    {
        i.Dump();
    }

    Global_Module_Unload();
    return 0;
}